#include <iostream>
#include <ctime>

#include "list.h"


using namespace std;
using namespace lt;
int random(int start, int end)
{
	//srand(unsigned(time(0)));
	return start + (end - start)*rand() / RAND_MAX;
}

int main()
{

	CList *slist = new CSlist();

	cout << slist->count() << endl;
	for (int i = 0; i < 15; ++i)
	{
		/*cout << random(1, 100)<<endl;*/
		slist->push_back(random(1, 100));
	}
	slist->output();
	cout << slist->count() << endl;

	slist->insert(5, 100);
	slist->output();

	getchar();
	return 0;
}